devel_wizard-2.x-dev/templates/spell/entity_type/content/interface.php.twig

templates/spell/entity_type/content/interface.php.twig
{%
  include '@devel_wizard/php/devel_wizard.php.file.header.php.twig'
  with {
    'namespace': module.namespace,
  }
%}

{%-
  include '@devel_wizard/php/devel_wizard.php.file.use_statements.php.twig'
  with {
    'useStatements': {
      'Drupal\\Core\\Entity\\ContentEntityInterface': '',
      'Drupal\\Core\\Entity\\EntityChangedInterface': '',
      'Drupal\\Core\\Entity\\EntityPublishedInterface': '',
      'Drupal\\Core\\Entity\\RevisionLogInterface': '',
      'Drupal\\user\\EntityOwnerInterface': '',
    },
  }
%}

/**
 * @method \Drupal\Core\Entity\ContentEntityTypeInterface getEntityType()
 */
interface {{ content.interface }} extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface, RevisionLogInterface, EntityPublishedInterface {

  public function getCreatedTime(): int;

  public function setCreatedTime(int $timestamp): static;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc