// Get all layers
map.getStyle().layers
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
/** | |
* @fileOverview The service | |
* | |
* @use | |
* | |
* const User = require('./user.model') | |
* const UserService = require('./user.service') | |
* module.exports = UserService(User) | |
* | |
* @requires ... |
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
/*doc | |
--- | |
title: Breadcrumb | |
component: | |
notes: | |
- Note 1 | |
- Note 2 | |
see: | |
- link1 |
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 | |
// Programmatically create files. | |
use Drupal\file\Entity\File; | |
$file = File::create([ | |
'uid' => 1, | |
'filename' => 'logo.svg', | |
'uri' => 'public://page/logo.svg', | |
'status' => 1, | |
]); |
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
<div class="team__item" itemprop="employee"> | |
<div class="team__inner" itemscope="" itemtype="http://schema.org/Person"> | |
<div class="team__content"> | |
<div class="team__content_back"> | |
<h3 itemprop="name">Name</h3> | |
<p itemprop="jobTitle">JobTitle</p> | |
</div> | |
</div> | |
</div> |
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@function array-value($list, $key) { | |
@each $item in $list { | |
@if ($key == nth($item, 1)) { | |
@return nth($item, 2); |
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 | |
// UPDATE::AxelRoche | |
$var_modal = array( | |
'id' => $_product->getId(), | |
'title' => $_product->getName(), | |
'price' => $_product->getPrice(), | |
'image' => $_product->getImageUrl(), | |
'qty' => 1, | |
); |
NewerOlder