SessionManager::isCli

protected SessionManager::isCli() Returns whether the current PHP process runs on CLI. Command line clients do not support cookies nor sessions. Return value bool File core/lib/Drupal/Core/Session/SessionManager.php, line 282 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected function isCli() { return PHP_SAPI === 'cli'; }

MemoryBackend::__construct

public MemoryBackend::__construct($bin) Constructs a MemoryBackend object. Parameters string $bin: The cache bin for which the object is created. File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 28 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function __construct($bin) { }

FieldStorageConfigEditForm::form

public FieldStorageConfigEditForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php, line 60 Class FieldStorageConfigEditForm Provides a form for the "field storage" edit page. Namespace Drupal\field_ui\Form Code public function form(array $form, FormSta

EntityRepository::getTranslationFromContext

public EntityRepository::getTranslationFromContext(EntityInterface $entity, $langcode = NULL, $context = array()) Gets the entity translation to be used in the given context. This will check whether a translation for the desired language is available and if not, it will fall back to the most appropriate translation based on the provided context. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose translation will be returned. string $langcode: (optional) The language of th

FilterFormat::getHtmlRestrictions

public FilterFormat::getHtmlRestrictions() Retrieve all HTML restrictions (tags and attributes) for the text format. Note that restrictions applied to the "*" tag (the wildcard tag, i.e. all tags) are treated just like any other HTML tag. That means that any restrictions applied to it are not automatically applied to all other tags. It is up to the caller to handle this in whatever way it sees fit; this way no information granularity is lost. Return value array|false A structured array as retu

ContentEntityConfirmFormBase::form

public ContentEntityConfirmFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 71 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function

Extension::__call

public Extension::__call($method, array $args) Re-routes method calls to SplFileInfo. Offers all SplFileInfo methods to consumers; e.g., $extension->getMTime(). File core/lib/Drupal/Core/Extension/Extension.php, line 151 Class Extension Defines an extension (file) object. Namespace Drupal\Core\Extension Code public function __call($method, array $args) { if (!isset($this->splFileInfo)) { $this->splFileInfo = new \SplFileInfo($this->pathname); } return call_user_fu

Registry::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/lib/Drupal/Core/Theme/Registry.php, line 134 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected $themeHandler;

_drupal_maintenance_theme

_drupal_maintenance_theme() Sets up the theming system for maintenance page. Used for site installs, updates and when the site is in maintenance mode. It also applies when the database is unavailable or bootstrap was not complete. Seven is always used for the initial install and update operations. In other cases, Bartik is used, but this can be overridden by setting a "maintenance_theme" key in the $settings variable in settings.php. File core/includes/theme.maintenance.inc, line 20 Theming for

Extension::getExtensionPathname

public Extension::getExtensionPathname() Returns the relative path of the main extension file, if any. Return value string|null File core/lib/Drupal/Core/Extension/Extension.php, line 117 Class Extension Defines an extension (file) object. Namespace Drupal\Core\Extension Code public function getExtensionPathname() { if ($this->filename) { return $this->getPath() . '/' . $this->filename; } }