/** * Constructs a Taxonomy object. * * @param array $settings * The plugin settings. * @param string $plugin_id * The plugin id. * @param \Drupal\Core\Entity\EntityStorageControllerInterface $term_storage * The taxonomy term storage controller. */ public function __construct(array $settings, $plugin_id, array $plugin_definition, EntityStorageControllerInterface $term_storage) { parent::__construct($settings, $plugin_id, $plugin_definition); $this->termStorage = $term_storage; }
/** * Constructs a File object. * * @param array $configuration * The plugin configuration. * @param string $plugin_id * The plugin id. * @param array $plugin_definition * The plugin definition. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory * The entity query factory. * @param \GuzzleHttp\ClientInterface $client * The http client. */ public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityManagerInterface $entity_manager, QueryFactory $query_factory, ClientInterface $client) { $this->client = $client; parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_manager, $query_factory); $this->fileExtensions = array_filter(explode(' ', $this->settings['file_extensions'])); }