public static function getUrlString($title) { return Helpers::slug($title); }
/** * Creates the content tabs * * @return array */ protected function createContentTabs() { $tabs = []; $count = 0; foreach ($this->contents as $item) { $itemAttributes = isset($item['attributes']) ? $item['attributes'] : []; $attributes = new Attributes($itemAttributes, ['class' => 'tab-pane', 'id' => Helpers::slug($item['title'])]); if ($this->fade) { $attributes->addClass('fade'); } if ($this->active == $count) { $attributes->addClass($this->fade ? 'in active' : 'active'); } $tabs[] = ['content' => $item['content'], 'attributes' => $attributes]; $count += 1; } return $tabs; }
public static function getUrlString($string) { return Helpers::slug($string); }
<?php return array('build_from' => null, 'save_to' => 'slug', 'max_length' => null, 'method' => function ($string, $sep) { return Helpers::slug($string); }, 'separator' => '-', 'unique' => true, 'include_trashed' => false, 'on_update' => false, 'reserved' => null, 'use_cache' => false);