BookOutline::nextLink

public BookOutline::nextLink(array $book_link) Fetches the book link for the next page of the book. Parameters array $book_link: A fully loaded book link that is part of the book hierarchy. Return value array A fully loaded book link for the page after the one represented in $book_link. File core/modules/book/src/BookOutline.php, line 80 Class BookOutline Provides handling to render the book outline. Namespace Drupal\book Code public function nextLink(array $book_link) { // Assigni

EntityStorageException

Defines an exception thrown when storage operations fail. Hierarchy class \Drupal\Core\Entity\EntityStorageException extends \Exception File core/lib/Drupal/Core/Entity/EntityStorageException.php, line 8 Namespace Drupal\Core\Entity Members

OpenDialogCommand::setDialogOptions

public OpenDialogCommand::setDialogOptions($dialog_options) Sets the dialog options array. Parameters array $dialog_options: Options to be passed to the dialog implementation. Any jQuery UI option can be used. See http://api.jqueryui.com/dialog. File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 98 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function setDialogOptions($dialog_options) { $this->

Schema::getComment

public Schema::getComment($table, $column = NULL) Retrieve a table or column comment. File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 552 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public function getComment($table, $column = NULL) { $condition = $this->buildTableNameCondition($table); if (isset($column)) { $condition->condition('column_name', $column); $condition->compile($th

Container::getServiceAlternatives

protected Container::getServiceAlternatives($id) Provides alternatives in case a service was not found. Parameters string $id: The service to get alternatives for. Return value string[] An array of strings with suitable alternatives. File core/lib/Drupal/Component/DependencyInjection/Container.php, line 572 Class Container Provides a container optimized for Drupal's needs. Namespace Drupal\Component\DependencyInjection Code protected function getServiceAlternatives($id) { $all_serv

CsrfTokenController::csrfToken

public CsrfTokenController::csrfToken() Returns a CSRF protecting session token. Return value \Symfony\Component\HttpFoundation\Response The response object. File core/modules/system/src/Controller/CsrfTokenController.php, line 48 Class CsrfTokenController Returns responses for CSRF token routes. Namespace Drupal\system\Controller Code public function csrfToken() { return new Response($this->tokenGenerator->get(CsrfRequestHeaderAccessCheck::TOKEN_KEY), 200, ['Content-Type' =&g

Crypt::hmacBase64

public static Crypt::hmacBase64($data, $key) Calculates a base-64 encoded, URL-safe sha-256 hmac. Parameters mixed $data: Scalar value to be validated with the hmac. mixed $key: A secret key, this can be any scalar value. Return value string A base-64 encoded sha-256 hmac, with + replaced with -, / with _ and any = padding characters removed. File core/lib/Drupal/Component/Utility/Crypt.php, line 46 Class Crypt Utility class for cryptographically-secure string handling routines. Namesp

DateTimeInterface::getDateTime

public DateTimeInterface::getDateTime() Returns the date time object. Return value \Drupal\Core\Datetime\DrupalDateTime|null A date object or NULL if there is no date. File core/lib/Drupal/Core/TypedData/Type/DateTimeInterface.php, line 20 Class DateTimeInterface Interface for dates, optionally including a time. Namespace Drupal\Core\TypedData\Type Code public function getDateTime();

ContentEntityBase::getIterator

public ContentEntityBase::getIterator() File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 545 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function getIterator() { return new \ArrayIterator($this->getFields()); }

LanguageEditForm::getFormId

public LanguageEditForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides EntityForm::getFormId File core/modules/language/src/Form/LanguageEditForm.php, line 15 Class LanguageEditForm Controller for language edit forms. Namespace Drupal\language\Form Code public function getFormId() { // @todo Remove in favour of base method. return 'language_admin_edit_form'; }