getPluginCollection()->get($this->plugin); } /** * Encapsulates the creation of the farm_quick's plugin collection. * * @return \Drupal\Component\Plugin\LazyPluginCollection * The block's plugin collection. */ protected function getPluginCollection() { if (!$this->pluginCollection) { $this->pluginCollection = new QuickFormPluginCollection(\Drupal::service('plugin.manager.quick_form'), $this->plugin, $this->get('settings'), $this->id()); } return $this->pluginCollection; } /** * {@inheritdoc} */ public function getPluginCollections() { return [ 'settings' => $this->getPluginCollection(), ]; } /** * {@inheritdoc} */ public function getPluginId() { return $this->plugin; } /** * {@inheritdoc} */ public function getLabel() { return $this->label ?? $this->getPlugin()->getLabel(); } /** * {@inheritdoc} */ public function getDescription() { return $this->description ?? $this->getPlugin()->getDescription(); } /** * {@inheritdoc} */ public function getHelpText() { return $this->helpText ?? $this->getPlugin()->getHelpText(); } /** * {@inheritdoc} */ public function getSettings() { return $this->settings; } }