OpCodeCache::isEnabled

public static OpCodeCache::isEnabled() Checks if OpCodeCache is enabled. Return value bool TRUE if opcache is enabled, FALSE otherwise. File core/lib/Drupal/Component/Utility/OpCodeCache.php, line 18 Class OpCodeCache Provides helpers to handle PHP opcode caches. Namespace Drupal\Component\Utility Code public static function isEnabled() { return extension_loaded('Zend OPcache') && ini_get('opcache.enable'); }

book_type_is_allowed

book_type_is_allowed($type) Determines if a given node type is in the list of types allowed for books. Parameters string $type: A node type. Return value bool A Boolean TRUE if the node type can be included in books; otherwise, FALSE. File core/modules/book/book.module, line 509 Allows users to create and organize related content in an outline. Code function book_type_is_allowed($type) { return in_array($type, \Drupal::config('book.settings')->get('allowed_types')); }

FormState::setMethod

public FormState::setMethod($method) Sets the HTTP method to use for the form's submission. This is what the form's "method" attribute should be, not necessarily what the current request's HTTP method is. For example, a form can have a method attribute of POST, but the request that initially builds it uses GET. Parameters string $method: Either "GET" or "POST". Other HTTP methods are not valid form submission methods. Return value $this Overrides FormStateInterface::setMethod See also \Drupa

LibraryDependencyResolver::$libraryDiscovery

The library discovery service. Type: \Drupal\Core\Asset\LibraryDiscoveryInterface File core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php, line 15 Class LibraryDependencyResolver Resolves the dependencies of asset (CSS/JavaScript) libraries. Namespace Drupal\Core\Asset Code protected $libraryDiscovery;

LibraryDiscovery::$libraryDefinitions

The final library definitions, statically cached. hook_library_info_alter() and hook_js_settings_alter() allows modules and themes to dynamically alter a library definition (once per request). Type: array File core/lib/Drupal/Core/Asset/LibraryDiscovery.php, line 27 Class LibraryDiscovery Discovers available asset libraries in Drupal. Namespace Drupal\Core\Asset Code protected $libraryDefinitions = [];

ShortcutForm::save

public ShortcutForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operatio

BookOutlineStorage::$connection

Database Service Object. Type: \Drupal\Core\Database\Connection File core/modules/book/src/BookOutlineStorage.php, line 17 Class BookOutlineStorage Defines a storage class for books outline. Namespace Drupal\book Code protected $connection;

AdminDemoNegotiator::applies

public AdminDemoNegotiator::applies(RouteMatchInterface $route_match) Whether this theme negotiator should be used to set the theme. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value bool TRUE if this negotiator should be used or FALSE to let other negotiators decide. Overrides ThemeNegotiatorInterface::applies File core/modules/block/src/Theme/AdminDemoNegotiator.php, line 16 Class AdminDemoNegotiator Negotiates the theme for

FieldConfigInterface::isDeleted

public FieldConfigInterface::isDeleted() Gets the deleted flag of the field. Return value bool Returns TRUE if the field is deleted. File core/modules/field/src/FieldConfigInterface.php, line 19 Class FieldConfigInterface Provides an interface defining a field entity. Namespace Drupal\field Code public function isDeleted();

BlockPlaceEventSubscriber::__construct

public BlockPlaceEventSubscriber::__construct(RequestStack $request_stack, AccountInterface $account) Constructs a \Drupal\block_place\EventSubscriber\BlockPlaceEventSubscriber object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request. \Drupal\Core\Session\AccountInterface $account: The current user. File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 38 Class BlockPlaceEventSub