Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition)
 {
     $properties = parent::propertyDefinitions($field_definition);
     $properties['pathauto'] = DataDefinition::create('integer')->setLabel(t('Pathauto state'))->setDescription(t('Whether an automated alias should be created or not.'))->setComputed(TRUE)->setClass('\\Drupal\\pathauto\\PathautoState');
     return $properties;
 }