Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / field / tests / modules / field_test / src / Plugin / Field / FieldType / TestItemWithDependencies.php
1 <?php
2
3 namespace Drupal\field_test\Plugin\Field\FieldType;
4
5 use Drupal\Core\Field\FieldDefinitionInterface;
6
7 /**
8  * Defines the 'test_field_with_dependencies' entity field item.
9  *
10  * @FieldType(
11  *   id = "test_field_with_dependencies",
12  *   label = @Translation("Test field with dependencies"),
13  *   description = @Translation("Dummy field type used for tests."),
14  *   default_widget = "test_field_widget",
15  *   default_formatter = "field_test_default",
16  *   config_dependencies = {
17  *     "module" = {
18  *       "test_module"
19  *     }
20  *   }
21  * )
22  */
23 class TestItemWithDependencies extends TestItem {
24
25   /**
26    * {@inheritdoc}
27    */
28   public static function calculateDependencies(FieldDefinitionInterface $field_definition) {
29     return ['content' => ['node:article:uuid']];
30   }
31
32 }