ViewExecutable::getOffset

public ViewExecutable::getOffset() Gets the pager offset from the pager. Return value int The pager offset. File core/modules/views/src/ViewExecutable.php, line 585 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getOffset() { // If the pager is already initialized, pass it through to the pager. if (!empty($this->pager)) { return $this->pager->getOffset(); } if (isset($this->offset)) { return $this->offset;

PhpSerialize::decode

public static PhpSerialize::decode($raw) Decodes data from the serialization format. Parameters string $raw: The raw data string to decode. Return value mixed The decoded data. Overrides SerializationInterface::decode File core/lib/Drupal/Component/Serialization/PhpSerialize.php, line 20 Class PhpSerialize Default serialization for serialized PHP. Namespace Drupal\Component\Serialization Code public static function decode($raw) { return unserialize($raw); }

ReadOnlyStream::getUri

ReadOnlyStream::getUri() Returns the stream resource URI. Return value string Returns the current URI of the instance. Overrides StreamWrapperInterface::getUri File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 49 Class ReadOnlyStream Defines a read-only Drupal stream wrapper base class. Namespace Drupal\Core\StreamWrapper Code function getUri() { return $this->uri; }

template_preprocess_image_anchor

template_preprocess_image_anchor(&$variables) Prepares variables for image anchor templates. Default template: image-anchor.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the image. File core/modules/image/image.admin.inc, line 109 Administration pages for image settings. Code function template_preprocess_image_anchor(&$variables) { $element = $variables['element']; $rows = array(); $row = array(); foreach

FieldItemList::__get

public FieldItemList::__get($property_name) Magic method: Gets a property value of to the first field item. Overrides FieldItemListInterface::__get See also \Drupal\Core\Field\FieldItemInterface::__set() File core/lib/Drupal/Core/Field/FieldItemList.php, line 124 Class FieldItemList Represents an entity field; that is, a list of field item objects. Namespace Drupal\Core\Field Code public function __get($property_name) { // For empty fields, $entity->field->property is NULL.

HtmlResponseAttachmentsProcessor::$assetResolver

The asset resolver service. Type: \Drupal\Core\Asset\AssetResolverInterface File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 39 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $assetResolver;

SearchController::create

public static SearchController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

DrupalKernel::getServicesToPersist

protected DrupalKernel::getServicesToPersist(ContainerInterface $container) Returns service instances to persist from an old container to a new one. File core/lib/Drupal/Core/DrupalKernel.php, line 1082 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function getServicesToPersist(ContainerInterface $container) { $persist = array(); foreach ($container->getParameter('persist_ids') as $id) { // It's pointless to pers

ConfigFactoryOverrideBase::getSubscribedEvents

static ConfigFactoryOverrideBase::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

PhpStorageInterface::garbageCollection

public PhpStorageInterface::garbageCollection() Performs garbage collection on the storage. The storage may choose to delete expired or invalidated items. File core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php, line 102 Class PhpStorageInterface Stores and loads PHP code. Namespace Drupal\Component\PhpStorage Code public function garbageCollection();