예제 #1
0
 /**
  * Constructs a Time cache plugin 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\Datetime\DateFormatter $date_formatter
  *   The date formatter service.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatter $date_formatter)
 {
     $this->dateFormatter = $date_formatter;
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 }
예제 #2
0
파일: Time.php 프로젝트: nstielau/drops-8
 /**
  * Constructs a Time cache plugin 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\Render\RendererInterface $renderer
  *   The HTML renderer.
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  *   The date formatter service.
  * @param \Drupal\Core\Render\RenderCacheInterface $render_cache
  *   The render cache service.
  * @param \Symfony\Component\HttpFoundation\Request $request
  *   The current request.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, RendererInterface $renderer, RenderCacheInterface $render_cache, DateFormatter $date_formatter, Request $request)
 {
     $this->dateFormatter = $date_formatter;
     $this->request = $request;
     parent::__construct($configuration, $plugin_id, $plugin_definition, $renderer, $render_cache);
 }