FilterFormat::toArray

public FilterFormat::toArray() Gets an array of all property values. Return value mixed[] An array of property values, keyed by property name. Overrides ConfigEntityBase::toArray File core/modules/filter/src/Entity/FilterFormat.php, line 166 Class FilterFormat Represents a text format. Namespace Drupal\filter\Entity Code public function toArray() { $properties = parent::toArray(); // The 'roles' property is only used during install and should never // actually be saved. unset(

Connection::escapeAlias

public Connection::escapeAlias($field) Escapes an alias name string. Force all alias names to be strictly alphanumeric-plus-underscore. In contrast to DatabaseConnection::escapeField() / DatabaseConnection::escapeTable(), this doesn't allow the period (".") because that is not allowed in aliases. Parameters string $field: An unsanitized alias name. Return value string The sanitized alias name. File core/lib/Drupal/Core/Database/Connection.php, line 979 Class Connection Base Database API

NodeAddAccessCheck

Determines access to for node add pages. Hierarchy class \Drupal\node\Access\NodeAddAccessCheck implements AccessInterface Related topics Node access rights The node access system determines who can do what to which nodes. File core/modules/node/src/Access/NodeAddAccessCheck.php, line 16 Namespace Drupal\node\Access Members Name Modifiers Type Description NodeAddAccessCheck::$entityManager protected property The entity manager. NodeAddAccessCheck::access public f

AjaxRenderer

Default main content renderer for Ajax requests. Hierarchy class \Drupal\Core\Render\MainContent\AjaxRenderer implements MainContentRendererInterface File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 16 Namespace Drupal\Core\Render\MainContent Members Name Modifiers Type Description AjaxRenderer::$controllerResolver protected property The controller resolver. AjaxRenderer::$elementInfoManager protected property The element info manager. AjaxRe

UpdateManager::__construct

public UpdateManager::__construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, UpdateProcessorInterface $update_processor, TranslationInterface $translation, KeyValueFactoryInterface $key_value_expirable_factory, ThemeHandlerInterface $theme_handler) Constructs a UpdateManager. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module Handler service \Dr

SessionHandler::gc

public SessionHandler::gc($lifetime) Cleans up expired sessions (garbage collection). Parameters string|int $maxlifetime Sessions that have not updated for the last maxlifetime seconds will be removed: Return value bool true on success, false on failure Overrides SessionHandlerInterface::gc See also http://php.net/sessionhandlerinterface.gc File core/lib/Drupal/Core/Session/SessionHandler.php, line 121 Class SessionHandler Default session handler. Namespace Drupal\Core\Session Code

ViewsData::getRevisionViewsTableForEntityType

protected ViewsData::getRevisionViewsTableForEntityType(EntityTypeInterface $entity_type) Gets the table of an entity type to be used as revision table in views. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. Return value string The revision base table. File core/modules/content_moderation/src/ViewsData.php, line 262 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code protected function getRevi

FormBuilder::elementTriggeredScriptedSubmission

protected FormBuilder::elementTriggeredScriptedSubmission($element, FormStateInterface &$form_state) Detects if an element triggered the form submission via Ajax. This detects button or non-button controls that trigger a form submission via Ajax or some other scriptable environment. These environments can set the special input key '_triggering_element_name' to identify the triggering element. If the name alone doesn't identify the element uniquely, the input key '_triggering_element_value'

ImageInterface::resize

public ImageInterface::resize($width, $height) Resizes an image to the given dimensions (ignoring aspect ratio). Parameters int $width: The target width, in pixels. int $height: The target height, in pixels. Return value bool TRUE on success, FALSE on failure. File core/lib/Drupal/Core/Image/ImageInterface.php, line 215 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function resize($width, $height);

aggregator_requirements

aggregator_requirements($phase) Implements hook_requirements(). File core/modules/aggregator/aggregator.install, line 11 Install, update and uninstall functions for the aggregator module. Code function aggregator_requirements($phase) { $has_curl = function_exists('curl_init'); $requirements = array(); $requirements['curl'] = array( 'title' => t('cURL'), 'value' => $has_curl ? t('Enabled') : t('Not found'), ); if (!$has_curl) { $requirements['curl']['severity'] = RE