コード例 #1
0
 /**
  * Constructs a Drupal\entity_embed\Plugin\CKEditorPlugin\DrupalEntity object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\Query\QueryInterface $embed_button_query
  *   The entity query object for embed button.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryInterface $embed_button_query)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->embedButtonQuery = $embed_button_query;
     if (!empty($plugin_definition['embed_type_id'])) {
         $this->embedButtonQuery->condition('type_id', $plugin_definition['embed_type_id']);
     }
 }
コード例 #2
0
ファイル: Internal.php プロジェクト: dmyerson/d8ecs
 /**
  * Constructs a \Drupal\ckeditor\Plugin\CKEditorPlugin\Internal object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
  *   The cache backend.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, CacheBackendInterface $cache_backend)
 {
     $this->cache = $cache_backend;
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 }
コード例 #3
0
ファイル: Linkit.php プロジェクト: eloiv/botafoc.cat
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $linkit_profile_storage) {
   parent::__construct($configuration, $plugin_id, $plugin_definition);
   $this->linkitProfileStorage = $linkit_profile_storage;
 }