Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -5,7 +5,6 @@
|
|||
* Provides page callbacks for custom blocks.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\block_content\Entity\BlockContentType;
|
||||
use Drupal\block_content\Entity\BlockContent;
|
||||
|
@ -28,7 +27,9 @@ function template_preprocess_block_content_add_list(&$variables) {
|
|||
foreach ($variables['content'] as $type) {
|
||||
$variables['types'][$type->id()] = array(
|
||||
'link' => \Drupal::l($type->label(), new Url('block_content.add_form', array('block_content_type' => $type->id()), array('query' => $query))),
|
||||
'description' => Xss::filterAdmin($type->getDescription()),
|
||||
'description' => array(
|
||||
'#markup' => $type->getDescription(),
|
||||
),
|
||||
'title' => $type->label(),
|
||||
'localized_options' => array(
|
||||
'query' => $query,
|
||||
|
|
Reference in a new issue