ClassResolverInterface::getInstanceFromDefinition

public ClassResolverInterface::getInstanceFromDefinition($definition) Returns a class instance with a given class definition. In contrast to controllers you don't specify a method. Parameters string $definition: A class name or service name. Return value object The instance of the class. Throws \InvalidArgumentException If $class is not a valid service identifier and the class does not exist. File core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php, line 24 Class ClassRes

ClientFactory::$stack

The handler stack. Type: \GuzzleHttp\HandlerStack File core/lib/Drupal/Core/Http/ClientFactory.php, line 20 Class ClientFactory Helper class to construct a HTTP client with Drupal specific config. Namespace Drupal\Core\Http Code protected $stack;

ClientFactory::fromOptions

public ClientFactory::fromOptions(array $config = []) Constructs a new client object from some configuration. Parameters array $config: The config for the client. Return value \GuzzleHttp\Client The HTTP client. File core/lib/Drupal/Core/Http/ClientFactory.php, line 41 Class ClientFactory Helper class to construct a HTTP client with Drupal specific config. Namespace Drupal\Core\Http Code public function fromOptions(array $config = []) { $default_config = [ // Security considera

ClientFactory

Helper class to construct a HTTP client with Drupal specific config. Hierarchy class \Drupal\Core\Http\ClientFactory File core/lib/Drupal/Core/Http/ClientFactory.php, line 13 Namespace Drupal\Core\Http Members Name Modifiers Type Description ClientFactory::$stack protected property The handler stack. ClientFactory::fromOptions public function Constructs a new client object from some configuration. ClientFactory::__construct public function Constructs a ne

ClientFactory::__construct

public ClientFactory::__construct(HandlerStack $stack) Constructs a new ClientFactory instance. Parameters \GuzzleHttp\HandlerStack $stack: The handler stack. File core/lib/Drupal/Core/Http/ClientFactory.php, line 28 Class ClientFactory Helper class to construct a HTTP client with Drupal specific config. Namespace Drupal\Core\Http Code public function __construct(HandlerStack $stack) { $this->stack = $stack; }

ClassResolver

Implements the class resolver interface supporting class names and services. Hierarchy class \Drupal\Core\DependencyInjection\ClassResolver implements ClassResolverInterface, ContainerAwareInterface uses DependencySerializationTrait, ContainerAwareTrait File core/lib/Drupal/Core/DependencyInjection/ClassResolver.php, line 11 Namespace Drupal\Core\DependencyInjection Members Name Modifiers Type Description ClassResolver::getInstanceFromDefinition public function Returns a

ckeditor_library_info_alter

ckeditor_library_info_alter(&$libraries, $extension) Implements hook_library_info_alter(). File core/modules/ckeditor/ckeditor.module, line 109 Provides integration with the CKEditor WYSIWYG editor. Code function ckeditor_library_info_alter(&$libraries, $extension) { // Pass Drupal's JS cache-busting string via settings along to CKEditor. // @see http://docs.ckeditor.com/#!/api/CKEDITOR-property-timestamp if ($extension === 'ckeditor' && isset($libraries['drupal.ckeditor

ckeditor_theme

ckeditor_theme() Implements hook_theme(). File core/modules/ckeditor/ckeditor.module, line 45 Provides integration with the CKEditor WYSIWYG editor. Code function ckeditor_theme() { return array( 'ckeditor_settings_toolbar' => array( 'file' => 'ckeditor.admin.inc', 'variables' => array('editor' => NULL, 'plugins' => NULL), ), ); }

ClassResolverInterface

Provides an interface to get a instance of a class with dependency injection. Hierarchy interface \Drupal\Core\DependencyInjection\ClassResolverInterface File core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php, line 8 Namespace Drupal\Core\DependencyInjection Members Name Modifiers Type Description ClassResolverInterface::getInstanceFromDefinition public function Returns a class instance with a given class definition.

ckeditor_help

ckeditor_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/ckeditor/ckeditor.module, line 15 Provides integration with the CKEditor WYSIWYG editor. Code function ckeditor_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.ckeditor': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The CKEditor module provides a highly-accessible, highly-u