recentpopularlog in

therobyouknow : block   41

Create a custom block | Drupal 8 guide on

namespace Drupal\hello_world\Plugin\Block;

use Drupal\Core\Block\BlockBase;
drupal8  custom  block 
march 2019 by therobyouknow
8 - How can we get Block Bundle Type for block in code? - Drupal Answers
use \Drupal\block_content\BlockContentInterface;

* Implements HOOK_preprocess_block().
* @param $variables
function mymodule_preprocess_block(&$variables) {
$content = $variables['elements']['content'];
if (isset($content['#block_content']) && $content['#block_content'] instanceof BlockContentInterface) {

if ($content['#block_content']->bundle() == 'xxx') {
// ...

8  drupal8  drupal  web  dev  cms  computing  module  theme  block  update  refresh  force  cache  disable  twig  specific  howto  question  answer  problem  solution  time  computed  generated  calculated 
march 2019 by therobyouknow
Adding a renderable-array block to a page gives errors in the admin UI [#1925018] | Drupal
Notice: Array to string conversion in filter_xss() (line 1442 of /includes/
Unsupported operand types in /var/www/go-on/includes/ on line 4461
Fatal error: Unsupported operand types in /home/www/public_html/includes/ on line 4462
solution  fix  patch  panels  ajax  block  error  drupal  computing  web  dev  cms 
september 2013 by therobyouknow
7 - Use a block in a panel - Drupal Answers
The blocks are under the "Miscellaneous" category.
block  panel  drupal  computing  web  dev  cms  howto 
september 2013 by therobyouknow
Drupal 7 Views Exposed Filters in Blocks (and panels) | Code Karate
Any views block will need AJAX set to YES in order to see the exposed filters.

"Any views block will need AJAX set to YES in order to see the exposed filters."
ajax  blocks  block  drupal  views  exposed  filters  computing  web  dev  panels  layout  cms  solution  error 
september 2013 by therobyouknow
MultiBlock |
used in conjunction with blockclass, several of the same block can be style differently for each page
multiblock  multiple  instance  instances  multi  block  module  drupal  computing  web  dev 
july 2013 by therobyouknow
Block Class |
assign css to block class for theming
css  block  drupal  computing  web  dev  cms  class  theming  themeing  theme 
july 2013 by therobyouknow
Context: Menu Block |
not sure how to apply this for my needs yet
context_menu_block  menu  block  drupal  module  web  dev  cms 
june 2013 by therobyouknow

Copy this bookmark:

to read