Commit cb9b6d42 authored by catch's avatar catch

Issue #2722609 by anoopjohn, mfernea, Jo Fitzgerald, chishah92, druprad,...

Issue #2722609 by anoopjohn, mfernea, Jo Fitzgerald, chishah92, druprad, martin107, Mile23: Fix Drupal.Commenting.FunctionComment.ParamNameNoMatch
parent b0087ffe
...@@ -205,9 +205,9 @@ public static function assertAllStrictArrays($traversable) { ...@@ -205,9 +205,9 @@ public static function assertAllStrictArrays($traversable) {
* @return bool * @return bool
* TRUE if $traversable can be traversed and all members have all keys. * TRUE if $traversable can be traversed and all members have all keys.
*/ */
public static function assertAllHaveKey() { public static function assertAllHaveKey($traversable) {
$args = func_get_args(); $args = func_get_args();
$traversable = array_shift($args); unset($args[0]);
if (static::assertTraversable($traversable)) { if (static::assertTraversable($traversable)) {
foreach ($traversable as $member) { foreach ($traversable as $member) {
...@@ -396,9 +396,9 @@ public static function assertAllRegularExpressionMatch($pattern, $traversable) { ...@@ -396,9 +396,9 @@ public static function assertAllRegularExpressionMatch($pattern, $traversable) {
* TRUE if $traversable can be traversed and all members are objects with * TRUE if $traversable can be traversed and all members are objects with
* at least one of the listed classes or interfaces. * at least one of the listed classes or interfaces.
*/ */
public static function assertAllObjects() { public static function assertAllObjects($traversable) {
$args = func_get_args(); $args = func_get_args();
$traversable = array_shift($args); unset($args[0]);
if (static::assertTraversable($traversable)) { if (static::assertTraversable($traversable)) {
foreach ($traversable as $member) { foreach ($traversable as $member) {
......
...@@ -433,8 +433,8 @@ protected function getAndSortConfigData($collection) { ...@@ -433,8 +433,8 @@ protected function getAndSortConfigData($collection) {
* *
* @see \Drupal\Core\Config\StorageComparerInterface::extractRenameNames() * @see \Drupal\Core\Config\StorageComparerInterface::extractRenameNames()
*/ */
protected function createRenameName($name1, $name2) { protected function createRenameName($old_name, $new_name) {
return $name1 . '::' . $name2; return $old_name . '::' . $new_name;
} }
/** /**
......
...@@ -60,8 +60,8 @@ public function getConfig() { ...@@ -60,8 +60,8 @@ public function getConfig() {
/** /**
* Sets the value of a particular configuration option. * Sets the value of a particular configuration option.
* *
* @param string $name * @param string $key
* The name of the configuration option to set. * The key of the configuration option to set.
* @param mixed $value * @param mixed $value
* The value to set. * The value to set.
* *
......
...@@ -20,10 +20,10 @@ class InstallerException extends \RuntimeException { ...@@ -20,10 +20,10 @@ class InstallerException extends \RuntimeException {
/** /**
* Constructs a new installer exception. * Constructs a new installer exception.
* *
* @param string $title
* The page title.
* @param string $message * @param string $message
* (optional) The exception message. Defaults to 'Error'. * The exception message.
* @param string $title
* (optional) The page title. Defaults to 'Error'.
* @param int $code * @param int $code
* (optional) The exception code. Defaults to 0. * (optional) The exception code. Defaults to 0.
* @param \Exception $previous * @param \Exception $previous
......
...@@ -42,7 +42,7 @@ class Context extends ComponentContext implements ContextInterface { ...@@ -42,7 +42,7 @@ class Context extends ComponentContext implements ContextInterface {
* *
* @param \Drupal\Core\Plugin\Context\ContextDefinitionInterface $context_definition * @param \Drupal\Core\Plugin\Context\ContextDefinitionInterface $context_definition
* The context definition. * The context definition.
* @param mixed $context_value|null * @param mixed|null $context_value
* The context value object. * The context value object.
*/ */
public function __construct(ContextDefinitionInterface $context_definition, $context_value = NULL) { public function __construct(ContextDefinitionInterface $context_definition, $context_value = NULL) {
......
...@@ -728,7 +728,7 @@ function hook_themes_installed($theme_list) { ...@@ -728,7 +728,7 @@ function hook_themes_installed($theme_list) {
/** /**
* Respond to themes being uninstalled. * Respond to themes being uninstalled.
* *
* @param array $theme_list * @param array $themes
* Array containing the names of the themes being uninstalled. * Array containing the names of the themes being uninstalled.
* *
* @see \Drupal\Core\Extension\ThemeHandler::uninstall() * @see \Drupal\Core\Extension\ThemeHandler::uninstall()
......
...@@ -147,7 +147,7 @@ public function unlink($uri) { ...@@ -147,7 +147,7 @@ public function unlink($uri) {
* *
* The file will not be renamed as this is a read-only stream wrapper. * The file will not be renamed as this is a read-only stream wrapper.
* *
* @param string $from_uri, * @param string $from_uri
* The uri to the file to rename. * The uri to the file to rename.
* @param string $to_uri * @param string $to_uri
* The new uri for file. * The new uri for file.
......
...@@ -380,7 +380,7 @@ public function unlink($uri) { ...@@ -380,7 +380,7 @@ public function unlink($uri) {
/** /**
* Support for rename(). * Support for rename().
* *
* @param string $from_uri, * @param string $from_uri
* The URI to the file to rename. * The URI to the file to rename.
* @param string $to_uri * @param string $to_uri
* The new URI for file. * The new URI for file.
......
...@@ -199,7 +199,7 @@ public function unlink($uri) { ...@@ -199,7 +199,7 @@ public function unlink($uri) {
* *
* This file will not be renamed as this is a read-only stream wrapper. * This file will not be renamed as this is a read-only stream wrapper.
* *
* @param string $from_uri, * @param string $from_uri
* The uri to the file to rename. * The uri to the file to rename.
* @param string $to_uri * @param string $to_uri
* The new uri for file. * The new uri for file.
......
...@@ -155,7 +155,7 @@ public function __construct(ModuleHandlerInterface $module_handler, CacheBackend ...@@ -155,7 +155,7 @@ public function __construct(ModuleHandlerInterface $module_handler, CacheBackend
* array of token replacements after they are generated. * array of token replacements after they are generated.
* - clear: A boolean flag indicating that tokens should be removed from the * - clear: A boolean flag indicating that tokens should be removed from the
* final text if no replacement value can be generated. * final text if no replacement value can be generated.
* @param \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata|null * @param \Drupal\Core\Render\BubbleableMetadata|null $bubbleable_metadata
* (optional) An object to which static::generate() and the hooks and * (optional) An object to which static::generate() and the hooks and
* functions that it invokes will add their required bubbleable metadata. * functions that it invokes will add their required bubbleable metadata.
* *
......
...@@ -35,7 +35,7 @@ protected function setUp() { ...@@ -35,7 +35,7 @@ protected function setUp() {
* *
* @param string $id * @param string $id
* The entity ID. * The entity ID.
* @param string $component * @param string $component_id
* The ID of the form component. * The ID of the form component.
*/ */
protected function assertDisplay($id, $component_id) { protected function assertDisplay($id, $component_id) {
......
...@@ -34,7 +34,7 @@ protected function setUp() { ...@@ -34,7 +34,7 @@ protected function setUp() {
* *
* @param string $id * @param string $id
* The entity ID. * The entity ID.
* @param string $component * @param string $component_id
* The ID of the form component. * The ID of the form component.
*/ */
protected function assertDisplay($id, $component_id) { protected function assertDisplay($id, $component_id) {
......
...@@ -51,7 +51,7 @@ function hook_editor_js_settings_alter(array &$settings) { ...@@ -51,7 +51,7 @@ function hook_editor_js_settings_alter(array &$settings) {
* @param \Drupal\filter\FilterFormatInterface $format * @param \Drupal\filter\FilterFormatInterface $format
* The text format configuration entity. Provides context based upon which * The text format configuration entity. Provides context based upon which
* one may want to adjust the filtering. * one may want to adjust the filtering.
* @param \Drupal\filter\FilterFormatInterface $original_format|null * @param \Drupal\filter\FilterFormatInterface|null $original_format
* (optional) The original text format configuration entity (when switching * (optional) The original text format configuration entity (when switching
* text formats/editors). Also provides context based upon which one may want * text formats/editors). Also provides context based upon which one may want
* to adjust the filtering. * to adjust the filtering.
......
...@@ -278,7 +278,7 @@ function editor_load($format_id) { ...@@ -278,7 +278,7 @@ function editor_load($format_id) {
* @param \Drupal\filter\FilterFormatInterface|null $format * @param \Drupal\filter\FilterFormatInterface|null $format
* The text format whose text editor will be used or NULL if the previously * The text format whose text editor will be used or NULL if the previously
* defined text format is now disabled. * defined text format is now disabled.
* @param \Drupal\filter\FilterFormatInterface $original_format|null * @param \Drupal\filter\FilterFormatInterface|null $original_format
* (optional) The original text format (i.e. when switching text formats, * (optional) The original text format (i.e. when switching text formats,
* $format is the text format that is going to be used, $original_format is * $format is the text format that is going to be used, $original_format is
* the one that was being used initially, the one that is stored in the * the one that was being used initially, the one that is stored in the
......
...@@ -34,8 +34,6 @@ protected function setUp() { ...@@ -34,8 +34,6 @@ protected function setUp() {
* The expected label of the view mode. * The expected label of the view mode.
* @param string $entity_type * @param string $entity_type
* The expected entity type ID which owns the view mode. * The expected entity type ID which owns the view mode.
* @param bool $status
* The expected status of the view mode.
*/ */
protected function assertEntity($id, $label, $entity_type) { protected function assertEntity($id, $label, $entity_type) {
/** @var \Drupal\Core\Entity\EntityViewModeInterface $view_mode */ /** @var \Drupal\Core\Entity\EntityViewModeInterface $view_mode */
......
...@@ -110,7 +110,7 @@ protected function normalizedFieldValues(FieldItemInterface $field_item, $format ...@@ -110,7 +110,7 @@ protected function normalizedFieldValues(FieldItemInterface $field_item, $format
* entity. This is the reason for using target_instances, from which the * entity. This is the reason for using target_instances, from which the
* property path can be traversed up to the root. * property path can be traversed up to the root.
* *
* @param \Drupal\Core\Field\FieldItemInterface $field_item * @param \Drupal\Core\Field\FieldItemInterface $item
* The untranslated field item instance. * The untranslated field item instance.
* @param $langcode * @param $langcode
* The langcode. * The langcode.
......
...@@ -51,8 +51,8 @@ public function normalize($field_items, $format = NULL, array $context = []) { ...@@ -51,8 +51,8 @@ public function normalize($field_items, $format = NULL, array $context = []) {
/** /**
* Helper function to normalize field items. * Helper function to normalize field items.
* *
* @param \Drupal\Core\Field\FieldItemListInterface $field * @param \Drupal\Core\Field\FieldItemListInterface $field_items
* The field object. * The field item list object.
* @param string $format * @param string $format
* The format. * The format.
* @param array $context * @param array $context
......
...@@ -52,7 +52,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface { ...@@ -52,7 +52,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
* The language manager service. * The language manager service.
* @param \Drupal\language\LanguageNegotiatorInterface $negotiator * @param \Drupal\language\LanguageNegotiatorInterface $negotiator
* The language negotiator. * The language negotiator.
* @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation; * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation
* The translation service. * The translation service.
* @param \Drupal\Core\Session\AccountInterface $current_user * @param \Drupal\Core\Session\AccountInterface $current_user
* The current active user. * The current active user.
......
...@@ -23,9 +23,6 @@ class NegotiationBrowserForm extends ConfigFormBase { ...@@ -23,9 +23,6 @@ class NegotiationBrowserForm extends ConfigFormBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler
*/ */
public function __construct(ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager ) { public function __construct(ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager ) {
parent::__construct($config_factory); parent::__construct($config_factory);
......
...@@ -24,7 +24,7 @@ public function setLanguageManager(ConfigurableLanguageManagerInterface $languag ...@@ -24,7 +24,7 @@ public function setLanguageManager(ConfigurableLanguageManagerInterface $languag
/** /**
* Injects the configuration factory. * Injects the configuration factory.
* *
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config
* The configuration factory. * The configuration factory.
*/ */
public function setConfig(ConfigFactoryInterface $config); public function setConfig(ConfigFactoryInterface $config);
......
...@@ -53,7 +53,7 @@ public static function create(ContainerInterface $container) { ...@@ -53,7 +53,7 @@ public static function create(ContainerInterface $container) {
/** /**
* Route entity upcasting test helper. * Route entity upcasting test helper.
* *
* @param \Drupal\language\ConfigurableLanguageInterface $language * @param \Drupal\language\ConfigurableLanguageInterface $configurable_language
* The ConfigurableLanguage object from the route. * The ConfigurableLanguage object from the route.
* *
* @return string * @return string
......
...@@ -153,7 +153,7 @@ public function allRowsProcessed(); ...@@ -153,7 +153,7 @@ public function allRowsProcessed();
/** /**
* Set the current migration status. * Set the current migration status.
* *
* @param int $result * @param int $status
* One of the STATUS_* constants. * One of the STATUS_* constants.
*/ */
public function setStatus($status); public function setStatus($status);
......
...@@ -49,10 +49,10 @@ class EntityFieldStorageConfig extends BaseEntityFieldStorageConfig { ...@@ -49,10 +49,10 @@ class EntityFieldStorageConfig extends BaseEntityFieldStorageConfig {
* The list of bundles this entity type has. * The list of bundles this entity type has.
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager. * The language manager.
* @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_plugin_manager
* The field type plugin manager.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The configuration factory. * The configuration factory.
* @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_plugin_manager
* The field type plugin manager.
*/ */
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, FieldTypePluginManagerInterface $field_type_plugin_manager) { public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, FieldTypePluginManagerInterface $field_type_plugin_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $language_manager, $config_factory, $field_type_plugin_manager); parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $language_manager, $config_factory, $field_type_plugin_manager);
......
...@@ -29,7 +29,7 @@ class Type extends StringArgument { ...@@ -29,7 +29,7 @@ class Type extends StringArgument {
* The plugin_id for the plugin instance. * The plugin_id for the plugin instance.
* @param mixed $plugin_definition * @param mixed $plugin_definition
* The plugin implementation definition. * The plugin implementation definition.
* @param \Drupal\Core\Entity\EntityStorageInterface $storage * @param \Drupal\Core\Entity\EntityStorageInterface $node_type_storage
* The entity storage class. * The entity storage class.
*/ */
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $node_type_storage) { public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $node_type_storage) {
......
...@@ -22,7 +22,7 @@ class RestConfigSubscriber implements EventSubscriberInterface { ...@@ -22,7 +22,7 @@ class RestConfigSubscriber implements EventSubscriberInterface {
/** /**
* Constructs the RestConfigSubscriber. * Constructs the RestConfigSubscriber.
* *
* @param \Drupal\Core\Routing\RouteBuilderInterface $route_builder * @param \Drupal\Core\Routing\RouteBuilderInterface $router_builder
* The router builder service. * The router builder service.
*/ */
public function __construct(RouteBuilderInterface $router_builder) { public function __construct(RouteBuilderInterface $router_builder) {
......
...@@ -149,8 +149,6 @@ public function view(Request $request, SearchPageInterface $entity) { ...@@ -149,8 +149,6 @@ public function view(Request $request, SearchPageInterface $entity) {
/** /**
* Creates a render array for the search help page. * Creates a render array for the search help page.
* *
* @param \Symfony\Component\HttpFoundation\Request $request
* The request object.
* @param \Drupal\search\SearchPageInterface $entity * @param \Drupal\search\SearchPageInterface $entity
* The search page entity. * The search page entity.
* *
......
...@@ -794,7 +794,7 @@ function simpletest_phpunit_xml_to_rows($test_id, $phpunit_xml_file) { ...@@ -794,7 +794,7 @@ function simpletest_phpunit_xml_to_rows($test_id, $phpunit_xml_file) {
* *
* @param \SimpleXMLElement $element * @param \SimpleXMLElement $element
* The PHPUnit xml to search for test cases. * The PHPUnit xml to search for test cases.
* @param \SimpleXMLElement $suite * @param \SimpleXMLElement $parent
* (Optional) The parent of the current element. Defaults to NULL. * (Optional) The parent of the current element. Defaults to NULL.
* *
* @return array * @return array
......
...@@ -235,7 +235,7 @@ protected function getResults($test_id) { ...@@ -235,7 +235,7 @@ protected function getResults($test_id) {
* *
* @param array $form * @param array $form
* The form to attach the results to. * The form to attach the results to.
* @param array $test_results * @param array $results
* The simpletest results. * The simpletest results.
* *
* @return array * @return array
......
...@@ -309,7 +309,7 @@ public static function scanDirectory($namespace_prefix, $path) { ...@@ -309,7 +309,7 @@ public static function scanDirectory($namespace_prefix, $path) {
/** /**
* Retrieves information about a test class for UI purposes. * Retrieves information about a test class for UI purposes.
* *
* @param string $class * @param string $classname
* The test classname. * The test classname.
* @param string $doc_comment * @param string $doc_comment
* (optional) The class PHPDoc comment. If not passed in reflection will be * (optional) The class PHPDoc comment. If not passed in reflection will be
......
...@@ -25,7 +25,7 @@ class SystemConfigSubscriber implements EventSubscriberInterface { ...@@ -25,7 +25,7 @@ class SystemConfigSubscriber implements EventSubscriberInterface {
/** /**
* Constructs the SystemConfigSubscriber. * Constructs the SystemConfigSubscriber.
* *
* @param \Drupal\Core\Routing\RouteBuilderInterface $route_builder * @param \Drupal\Core\Routing\RouteBuilderInterface $router_builder
* The router builder service. * The router builder service.
*/ */
public function __construct(RouteBuilderInterface $router_builder) { public function __construct(RouteBuilderInterface $router_builder) {
......
...@@ -78,10 +78,6 @@ protected function enableTranslation() { ...@@ -78,10 +78,6 @@ protected function enableTranslation() {
/** /**
* Adds term reference field for the article content type. * Adds term reference field for the article content type.
*
* @param bool $translatable
* (optional) If TRUE, create a translatable term reference field. Defaults
* to FALSE.
*/ */
protected function setUpTermReferenceField() { protected function setUpTermReferenceField() {
$handler_settings = [ $handler_settings = [
......
...@@ -73,10 +73,6 @@ protected function enableTranslation() { ...@@ -73,10 +73,6 @@ protected function enableTranslation() {
/** /**
* Adds term reference field for the article content type. * Adds term reference field for the article content type.
*
* @param bool $translatable
* (optional) If TRUE, create a translatable term reference field. Defaults
* to FALSE.
*/ */
protected function setUpTermReferenceField() { protected function setUpTermReferenceField() {
$handler_settings = [ $handler_settings = [
......
...@@ -60,9 +60,6 @@ public function getFormId() { ...@@ -60,9 +60,6 @@ public function getFormId() {
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request object.
*/ */
public function buildForm(array $form, FormStateInterface $form_state) { public function buildForm(array $form, FormStateInterface $form_state) {
$form['name'] = [ $form['name'] = [
......
...@@ -25,10 +25,14 @@ protected function getRoles() { ...@@ -25,10 +25,14 @@ protected function getRoles() {
} }
/** /**
* {@inheritdoc} * Builds the user permissions administration form for a specific role.
* *
* @param string $role_id * @param array $form
* The user role ID used for this form. * An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
* @param \Drupal\user\RoleInterface|null $user_role
* (optional) The user role used for this form. Defaults to NULL.
*/ */
public function buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL) { public function buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL) {
$this->userRole = $user_role; $this->userRole = $user_role;
......
...@@ -95,7 +95,7 @@ protected function orderResultSet($result_set, $column, $reverse = FALSE) { ...@@ -95,7 +95,7 @@ protected function orderResultSet($result_set, $column, $reverse = FALSE) {
* *
* @param string $id * @param string $id
* The HTML ID of the button * The HTML ID of the button
* @param string $label * @param string $expected_label
* The expected label for the button. * The expected label for the button.
* @param string $message * @param string $message
* (optional) A custom message to display with the assertion. If no custom * (optional) A custom message to display with the assertion. If no custom
......
...@@ -139,7 +139,7 @@ protected function setupEntityTypeManager(EntityTypeManagerInterface $entity_typ ...@@ -139,7 +139,7 @@ protected function setupEntityTypeManager(EntityTypeManagerInterface $entity_typ
* *
* @param \Drupal\Core\Entity\EntityInterface[][] $entities_by_type * @param \Drupal\Core\Entity\EntityInterface[][] $entities_by_type
* Test entities keyed by entity type and entity ID. * Test entities keyed by entity type and entity ID.
* @param \Drupal\Core\Entity\EntityInterface[][] $entities_by_type * @param \Drupal\Core\Entity\EntityInterface[][] $entity_revisions_by_type
* Test entities keyed by entity type and revision ID. * Test entities keyed by entity type and revision ID.
* *
* @return \Prophecy\Prophecy\ObjectProphecy * @return \Prophecy\Prophecy\ObjectProphecy
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
<exclude name="Drupal.Commenting.FunctionComment.ParamCommentFullStop"/> <exclude name="Drupal.Commenting.FunctionComment.ParamCommentFullStop"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamCommentIndentation"/> <exclude name="Drupal.Commenting.FunctionComment.ParamCommentIndentation"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamMissingDefinition"/> <exclude name="Drupal.Commenting.FunctionComment.ParamMissingDefinition"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamNameNoMatch"/>
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/> <exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
</rule> </rule>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/ControlStructures/ElseIfSniff.php"/> <rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/ControlStructures/ElseIfSniff.php"/>
......
...@@ -547,12 +547,11 @@ protected function generatePlaceholderElement() { ...@@ -547,12 +547,11 @@ protected function generatePlaceholderElement() {
/** /**
* @param false|array $cid_parts * @param false|array $cid_parts
* @param array $expected_data
* FALSE if no render cache item is expected, a render array with the
* expected values if a render cache item is expected.
* @param string[] $bubbled_cache_contexts * @param string[] $bubbled_cache_contexts
* Additional cache contexts that were bubbled when the placeholder was * Additional cache contexts that were bubbled when the placeholder was
* rendered. * rendered.
* @param array $expected_data
* A render array with the expected values.
*/ */
protected function assertPlaceholderRenderCache($cid_parts, array $bubbled_cache_contexts, array $expected_data) { protected function assertPlaceholderRenderCache($cid_parts, array $bubbled_cache_contexts, array $expected_data) {
if ($cid_parts !== FALSE) { if ($cid_parts !== FALSE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment