Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $path_breadcrumb = new stdClass();
- $path_breadcrumb->api_version = 1;
- $path_breadcrumb->machine_name = 'product';
- $path_breadcrumb->name = 'Product';
- $path_breadcrumb->path = 'node/%node';
- $path_breadcrumb->data = array(
- 'titles' => array(
- 0 => 'Каталог',
- 1 => '%node:field-category:parent:name',
- 2 => '%node:field-category:name',
- 3 => '%node:title',
- ),
- 'paths' => array(
- 0 => 'katalog',
- 1 => '%node:field-category:parent:url',
- 2 => '%node:field-category:url',
- 3 => '<none>',
- ),
- 'home' => 1,
- 'translatable' => 0,
- 'arguments' => array(
- 'node' => array(
- 'position' => 1,
- 'argument' => 'entity_id:node',
- 'settings' => array(
- 'identifier' => 'Node: ID',
- ),
- ),
- ),
- 'access' => array(
- 'plugins' => array(
- 0 => array(
- 'name' => 'node_type',
- 'settings' => array(
- 'type' => array(
- 'product' => 'product',
- ),
- ),
- 'context' => 'node',
- 'not' => FALSE,
- ),
- ),
- 'logic' => 'and',
- ),
- );
- $path_breadcrumb->weight = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement