This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\bartik\blocks; | |
use Drupal\layout\Plugin\block\block\PagePrimaryLinks; | |
class PrimaryLinks extends PagePrimaryLinks { | |
/** | |
* Implements BlockInterface::build(). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_block_alter(). | |
*/ | |
function bartik_block_alter(&$definitions) { | |
$definitions['page_primary_links']['class'] = 'Drupal\\bartik\\blocks\\PrimaryLinks'; | |
$definitions['page_secondary_links']['class'] = 'Drupal\\bartik\\blocks\\SecondaryLinks'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\layout\Plugin\block\block; | |
use Drupal\block\BlockBase; | |
use Drupal\Core\Annotation\Plugin; | |
use Drupal\Core\Annotation\Translation; | |
/** | |
* @Plugin( |