Search for to

  1. Search 7.x for to
  2. Search 9.5.x for to
  3. Search 8.9.x for to
  4. Search 10.3.x for to
  5. Search main for to
  6. Other projects
Title Object type File name Summary
AutowiredInstanceTraitTest::testAutowireMissingRequiredService function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php Tests exception for missing required service.
AutowireErrorBlock class core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireErrorBlock.php Provides a block that cannot be autowired.
AutowireErrorBlock.php file core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireErrorBlock.php
AutowireErrorBlock::build function core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireErrorBlock.php Builds and returns the renderable array for this block plugin.
AutowireErrorBlock::__construct function core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireErrorBlock.php
AutowireRequiredParameterTestClass class core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php Test class for autowiring a required parameter.
AutowireRequiredParameterTestClass::__construct function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php
AutowireRequiredServiceTestClass class core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php Test class for autowiring a required service.
AutowireRequiredServiceTestClass::__construct function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php
AutowireTest class core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php Tests auto-wiring services.
AutowireTest.php file core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php
AutowireTest::$modules property core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php Modules to install.
AutowireTest::testAutowire function core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php Tests that 'autowire_test.service' has its dependencies injected.
AutowireTest::testCoreControllerAutowiring function core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php Tests that core controllers are autowired where possible.
AutowireTest::testCoreServiceAliases function core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php Tests that core services have aliases correctly defined where possible.
AutowireTestClass class core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php Test class covering service and parameter autowiring scenarios.
AutowireTestClass::$setterNamedService property core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php An injected service.
AutowireTestClass::$setterParameter property core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php An injected parameter.
AutowireTestClass::$setterTypedService property core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php An injected service.
AutowireTestClass::setNamedService function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php #[Required]
AutowireTestClass::setParameter function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php #[Required]
AutowireTestClass::setTypedService function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php #[Required]
AutowireTestClass::__construct function core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php
AutowireTrait trait core/lib/Drupal/Core/DependencyInjection/AutowireTrait.php Defines a trait for automatically wiring dependencies from the container.
AutowireTrait.php file core/lib/Drupal/Core/DependencyInjection/AutowireTrait.php
AutowireTrait::create function core/lib/Drupal/Core/DependencyInjection/AutowireTrait.php Instantiates a new instance of the implementing class using autowiring.
autowire_test.info.yml file core/modules/system/tests/modules/autowire_test/autowire_test.info.yml core/modules/system/tests/modules/autowire_test/autowire_test.info.yml
autowire_test.services.yml file core/modules/system/tests/modules/autowire_test/autowire_test.services.yml core/modules/system/tests/modules/autowire_test/autowire_test.services.yml
Autowiring class core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/Autowiring.php Builds an image toolkit operation.
Autowiring.php file core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/Autowiring.php
Autowiring::execute function core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/Autowiring.php Performs the actual manipulation on the image.
Autowiring::__construct function core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/Autowiring.php Constructs an image toolkit operation plugin.
AvifImageEffect::$imageToolkitManager property core/modules/image/src/Plugin/ImageEffect/AvifImageEffect.php The image toolkit manager.
bad_help_topics.bad_html.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.bad_html.html.twig ---
label: 'Help topic with bad HTML syntax'
top_level: true
---
<p>{% trans %}Body goes here{% endtrans %}</h3>
bad_help_topics.bad_html2.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.bad_html2.html.twig ---
label: 'Bad HTML syntax within trans section'
top_level: true
---
<p>{% trans %}<a href="/foo">Text here{% endtrans %}</a></p>
bad_help_topics.bad_html3.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.bad_html3.html.twig ---
label: 'Unclosed HTML tag'
top_level: true
---
<p>{% trans %}<a href="/foo">Text here{% endtrans %}</p>
bad_help_topics.empty.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.empty.html.twig ---
label: 'Help topic containing no body'
top_level: true
---
bad_help_topics.h1.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.h1.html.twig ---
label: 'Help topic with H1 header'
top_level: true
---
<h1>{% trans %}Body goes here{% endtrans %}</h1>
bad_help_topics.hierarchy.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.hierarchy.html.twig ---
label: 'Help topic with h3 without an h2'
top_level: true
---
<h3>{% trans %}Body goes here{% endtrans %}</h3>
bad_help_topics.locale.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.locale.html.twig ---
label: 'Help topic with locale-unsafe tag'
top_level: true
---
<p>{% trans %}some translated text and a <script>alert('hello')</script>{% endtrans %}</p>
bad_help_topics.related.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.related.html.twig ---
label: 'Help topic related to nonexistent topic'
top_level: true
related:
- this.is.not.a.valid.help_topic.id
---
<p>{% trans %}Body goes here{% trans %}</p>
bad_help_topics.top_level.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.top_level.html.twig ---
label: 'Help topic not top level or related to top level'
---
<p>{% trans %}Body goes here{% endtrans %}</p>
bad_help_topics.translated.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.translated.html.twig ---
label: 'Help topic with untranslated text'
top_level: true
---
<p>Body goes here</p>
<p>{% trans %}some translated text too{% endtrans %}</p>
bad_help_topics.url_func_used.html.twig file core/modules/help/tests/modules/help_topics_test/bad_help_topics/syntax/bad_help_topics.url_func_used.html.twig ---
label: 'URL test topic that uses outdated url function'
top_level: true
---
{% set link_uses_url_func = render_var(url('valid.route')) %}
<p>{% trans %}This topic should be top-level. It is used to test URLs{% endtrans…
BaseFieldDefinition::createFromFieldStorageDefinition function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Creates a new field definition based upon a field storage definition.
BaseFieldDefinition::getFieldStorageDefinition function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the field storage definition.
BaseFieldDefinition::getOptionsProvider function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Gets an options provider for the given field item property.
BaseFieldDefinition::getUniqueStorageIdentifier function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns a unique identifier for the field storage.
BaseFieldDefinition::hasCustomStorage function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the storage behavior for this field.
BaseFieldDefinition::isStorageRequired function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns whether the field storage is required.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.