You are here

abstract class FieldSlideshowPagerPluginBase in Field Slideshow 8.3

Base class for field_slideshow_pager plugins.

Hierarchy

Expanded class hierarchy of FieldSlideshowPagerPluginBase

2 files declare their use of FieldSlideshowPagerPluginBase
Counter.php in src/Plugin/FieldSlideshowPager/Counter.php
Thumbnails.php in src/Plugin/FieldSlideshowPager/Thumbnails.php

File

src/FieldSlideshowPagerPluginBase.php, line 11

Namespace

Drupal\field_slideshow
View source
abstract class FieldSlideshowPagerPluginBase extends PluginBase implements FieldSlideshowPagerInterface {

  /**
   * {@inheritdoc}
   */
  public function label() {

    // Cast the label to a string since it is a TranslatableMarkup object.
    return (string) $this->pluginDefinition['label'];
  }

  /**
   * Function render pager.
   *
   * @param \Drupal\Core\Field\FieldItemListInterface $items
   *   List of items.
   *
   * @return array
   *   Rendered array.
   */
  public abstract function viewPager(FieldItemListInterface $items);

}

Members

Namesort descending Modifiers Type Description Overrides
FieldSlideshowPagerPluginBase::label public function Returns the translated plugin label. Overrides FieldSlideshowPagerInterface::label
FieldSlideshowPagerPluginBase::viewPager abstract public function Function render pager. 2
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92