Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function postCreate(EntityStorageInterface $storage)
 {
     parent::postCreate($storage);
     // Validate that we have a valid storage for this field. This throws an
     // exception if the storage is invalid.
     $this->getFieldStorageDefinition();
     // 'Label' defaults to the field name (mostly useful for fields created in
     // tests).
     if (empty($this->label)) {
         $this->label = $this->getName();
     }
 }