entity_meta_relation-8.x-1.0-beta8/src/Annotation/EntityMetaRelation.php

src/Annotation/EntityMetaRelation.php
<?php

declare(strict_types=1);

namespace Drupal\emr\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an entity meta relation annotation object.
 *
 * @Annotation
 * phpcs:disable Drupal.NamingConventions.ValidVariableName.LowerCamelName
 */
class EntityMetaRelation extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $title;

  /**
   * The description of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $description;

  /**
   * The bundle of the EntityMeta entity type this plugin works with.
   *
   * @var string
   */
  public $entity_meta_bundle;

  /**
   * Whether the plugin should be embedded into a content form.
   *
   * @var string
   */
  public $content_form;

  /**
   * Whether to attach a meta to the host entity by default.
   *
   * This is done by
   * EntityMetaRelationPluginInterface:fillDefaultEntityMetaValues().
   *
   * @var bool
   */
  public $attach_by_default;

  /**
   * The class to use as a wrapper to the EntityMeta entity.
   *
   * This wrapper is used for abstracting the logic for accessing the data
   * inside the EntityMeta entities.
   *
   * @var string
   */
  public $entity_meta_wrapper_class;

}

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

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