FTPExtension::connect

public FTPExtension::connect() Connects to the server. Overrides FileTransfer::connect File core/lib/Drupal/Core/FileTransfer/FTPExtension.php, line 13 Class FTPExtension Defines a file transfer class using the PHP FTP extension. Namespace Drupal\Core\FileTransfer Code public function connect() { $this->connection = ftp_connect($this->hostname, $this->port); if (!$this->connection) { throw new FileTransferException("Cannot connect to FTP Server, check settings");

CacheFactory::__construct

public CacheFactory::__construct(Settings $settings, array $default_bin_backends = array()) Constructs CacheFactory object. Parameters \Drupal\Core\Site\Settings $settings: The settings array. array $default_bin_backends: (optional) A mapping of bin to backend service name. Mappings in $settings take precedence over this. File core/lib/Drupal/Core/Cache/CacheFactory.php, line 45 Class CacheFactory Namespace Drupal\Core\Cache Code public function __construct(Settings $settings, array

ContactFormInterface::getMessage

public ContactFormInterface::getMessage() Returns the message to be displayed to user. Return value string A user message. File core/modules/contact/src/ContactFormInterface.php, line 18 Class ContactFormInterface Provides an interface defining a contact form entity. Namespace Drupal\contact Code public function getMessage();

CommentAdminOverview::submitForm

public CommentAdminOverview::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/comment/src/Form/CommentAdminOverview.php, line 255 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\F

LanguageConfigCollectionNameTrait

Provides a common trait for working with language override collection names. Hierarchy trait \Drupal\language\Config\LanguageConfigCollectionNameTrait File core/modules/language/src/Config/LanguageConfigCollectionNameTrait.php, line 8 Namespace Drupal\language\Config Members Name Modifiers Type Description LanguageConfigCollectionNameTrait::createConfigCollectionName protected function Creates a configuration collection name based on a language code. LanguageConfigColl

Tip::$id

The plugin ID. Type: string File core/modules/tour/src/Annotation/Tip.php, line 28 Class Tip Defines a tour item annotation object. Namespace Drupal\tour\Annotation Code public $id;

LanguageNegotiationMethodInterface::setLanguageManager

public LanguageNegotiationMethodInterface::setLanguageManager(ConfigurableLanguageManagerInterface $language_manager) Injects the language manager. Parameters \Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager to be used to retrieve the language list and the already negotiated languages. File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 22 Class LanguageNegotiationMethodInterface Interface for language negotiation classe

TwigExtensionPass

Adds the twig_extension_hash parameter to the container. twig_extension_hash is a hash of all extension mtimes for Twig template invalidation. Hierarchy class \Drupal\Core\DependencyInjection\Compiler\TwigExtensionPass implements CompilerPassInterface File core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php, line 14 Namespace Drupal\Core\DependencyInjection\Compiler Members Name Modifiers Type Description TwigExtensionPass::process public function You

FieldItemBase::__unset

public FieldItemBase::__unset($name) Magic method: Unsets a property. Parameters $property_name: The name of the property to get; e.g., 'title' or 'name'. Overrides FieldItemInterface::__unset File core/lib/Drupal/Core/Field/FieldItemBase.php, line 172 Class FieldItemBase An entity field item. Namespace Drupal\Core\Field Code public function __unset($name) { if ($this->definition->getPropertyDefinition($name)) { $this->set($name, NULL); } else { // Explicitly un

DataDefinition::setDataType

public DataDefinition::setDataType($type) Sets the data type. Parameters string $type: The data type to set. Return value static The object itself for chaining. File core/lib/Drupal/Core/TypedData/DataDefinition.php, line 64 Class DataDefinition A typed data definition class for defining data based on defined data types. Namespace Drupal\Core\TypedData Code public function setDataType($type) { $this->definition['type'] = $type; return $this; }