Issue #2601682 by krknth, rakesh.gectcr, anil280988, jhodgdon: Unnecessary @param tags & Missing variable names in block, block_content module

8.0.x
Alex Pott 2015-11-02 16:41:11 +00:00
parent cbef10d714
commit 3060a7c0ef
5 changed files with 13 additions and 8 deletions

View File

@ -186,8 +186,6 @@ class BlockViewBuilder extends EntityViewBuilder {
* A block config entity ID. * A block config entity ID.
* @param $view_mode * @param $view_mode
* The view mode the block is being viewed in. * The view mode the block is being viewed in.
* @param $langcode
* The langcode the block is being viewed in.
* *
* @return array * @return array
* A render array with a #pre_render callback to render the block. * A render array with a #pre_render callback to render the block.

View File

@ -61,8 +61,6 @@ class MigrateBlockTest extends MigrateDrupal6TestBase {
* *
* @param string $id * @param string $id
* The block ID. * The block ID.
* @param string $module
* The module.
* @param array $visibility * @param array $visibility
* The block visibility settings. * The block visibility settings.
* @param string $region * @param string $region

View File

@ -57,6 +57,13 @@ class BlockContentBlock extends BlockBase implements ContainerFactoryPluginInter
*/ */
protected $blockContent; protected $blockContent;
/**
* The URL generator.
*
* @var \Drupal\Core\Routing\UrlGeneratorInterface
*/
protected $urlGenerator;
/** /**
* Constructs a new BlockContentBlock. * Constructs a new BlockContentBlock.
* *
@ -66,12 +73,14 @@ class BlockContentBlock extends BlockBase implements ContainerFactoryPluginInter
* 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\Block\BlockManagerInterface * @param \Drupal\Core\Block\BlockManagerInterface $block_manager
* The Plugin Block Manager. * The Plugin Block Manager.
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager service. * The entity manager service.
* @param \Drupal\Core\Session\AccountInterface $account * @param \Drupal\Core\Session\AccountInterface $account
* The account for which view access should be checked. * The account for which view access should be checked.
* @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
* The URL generator.
*/ */
public function __construct(array $configuration, $plugin_id, $plugin_definition, BlockManagerInterface $block_manager, EntityManagerInterface $entity_manager, AccountInterface $account, UrlGeneratorInterface $url_generator) { public function __construct(array $configuration, $plugin_id, $plugin_definition, BlockManagerInterface $block_manager, EntityManagerInterface $entity_manager, AccountInterface $account, UrlGeneratorInterface $url_generator) {
parent::__construct($configuration, $plugin_id, $plugin_definition); parent::__construct($configuration, $plugin_id, $plugin_definition);

View File

@ -65,7 +65,7 @@ abstract class BlockContentTestBase extends WebTestBase {
/** /**
* Creates a custom block. * Creates a custom block.
* *
* @param string $title * @param bool|string $title
* (optional) Title of block. When no value is given uses a random name. * (optional) Title of block. When no value is given uses a random name.
* Defaults to FALSE. * Defaults to FALSE.
* @param string $bundle * @param string $bundle

View File

@ -83,10 +83,10 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
/** /**
* Creates a custom block. * Creates a custom block.
* *
* @param string $title * @param bool|string $title
* (optional) Title of block. When no value is given uses a random name. * (optional) Title of block. When no value is given uses a random name.
* Defaults to FALSE. * Defaults to FALSE.
* @param string $bundle * @param bool|string $bundle
* (optional) Bundle name. When no value is given, defaults to * (optional) Bundle name. When no value is given, defaults to
* $this->bundle. Defaults to FALSE. * $this->bundle. Defaults to FALSE.
* *