You are here

interface FillPdfContextManagerInterface in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/FillPdfContextManagerInterface.php \Drupal\fillpdf\FillPdfContextManagerInterface

Load entities from a FillPDF $context.

Provides a common interface for loading and serialization of the $context array returned by FillPdfLinkManipulator::parseRequest().

@package Drupal\fillpdf\FillPdfContextManagerInterface

Hierarchy

Expanded class hierarchy of FillPdfContextManagerInterface

All classes that implement FillPdfContextManagerInterface

2 files declare their use of FillPdfContextManagerInterface
FillPdfContextManager.php in src/Service/FillPdfContextManager.php
HandlePdfController.php in src/Controller/HandlePdfController.php

File

src/FillPdfContextManagerInterface.php, line 13

Namespace

Drupal\fillpdf
View source
interface FillPdfContextManagerInterface {

  /**
   * Loads the entities specified in $context['entity_ids'].
   *
   * @param array $context
   *   The FillPDF request context as returned by
   *   FillPdfLinkManipulatorInterface::parseLink().
   *
   * @return \Drupal\Core\Entity\EntityInterface[][]
   *   Multidimensional array of entities, keyed by ID and grouped by entity
   *   type. Returns an empty array if no matching entities are found.
   *
   * @see \Drupal\fillpdf\FillPdfLinkManipulatorInterface::parseLink()
   */
  public function loadEntities(array $context);

}

Members

Namesort descending Modifiers Type Description Overrides
FillPdfContextManagerInterface::loadEntities public function Loads the entities specified in $context['entity_ids']. 1