src/Form/Element/DependentSelect.php 1 location
|
@@ 82-89 (lines=8) @@
|
79 |
|
/** |
80 |
|
* @return string |
81 |
|
*/ |
82 |
|
public function getDataUrl() |
83 |
|
{ |
84 |
|
return $this->dataUrl ?: route('admin.form.element.dependent-select', [ |
85 |
|
'adminModel' => \AdminSection::getModel($this->model)->getAlias(), |
86 |
|
'field' => $this->getName(), |
87 |
|
'id' => $this->model->getKey(), |
88 |
|
]); |
89 |
|
} |
90 |
|
|
91 |
|
/** |
92 |
|
* @param string $dataUrl |
src/Form/Element/MultiSelectAjax.php 1 location
|
@@ 94-101 (lines=8) @@
|
91 |
|
* Getter of search url. |
92 |
|
* @return string |
93 |
|
*/ |
94 |
|
public function getSearchUrl() |
95 |
|
{ |
96 |
|
return $this->search_url ? $this->search_url : route('admin.form.element.'.static::$route, [ |
97 |
|
'adminModel' => AdminSection::getModel($this->model)->getAlias(), |
98 |
|
'field' => $this->getFieldName(), |
99 |
|
'id' => $this->model->getKey(), |
100 |
|
]); |
101 |
|
} |
102 |
|
|
103 |
|
/** |
104 |
|
* @param Router $router |
src/Form/Element/SelectAjax.php 1 location
|
@@ 95-102 (lines=8) @@
|
92 |
|
/** |
93 |
|
* @return string |
94 |
|
*/ |
95 |
|
public function getSearchUrl() |
96 |
|
{ |
97 |
|
return $this->search_url ? $this->search_url : route('admin.form.element.'.static::$route, [ |
98 |
|
'adminModel' => \AdminSection::getModel($this->model)->getAlias(), |
99 |
|
'field' => $this->getName(), |
100 |
|
'id' => $this->model->getKey(), |
101 |
|
]); |
102 |
|
} |
103 |
|
|
104 |
|
/** |
105 |
|
* @return array |