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/SelectAjax.php 1 location
|
@@ 63-70 (lines=8) @@
|
60 |
|
/** |
61 |
|
* @return string |
62 |
|
*/ |
63 |
|
public function getSearchUrl() |
64 |
|
{ |
65 |
|
return $this->search_url ? $this->search_url : route('admin.form.element.'.static::$route, [ |
66 |
|
'adminModel' => \AdminSection::getModel($this->model)->getAlias(), |
67 |
|
'field' => $this->getName(), |
68 |
|
'id' => $this->model->getKey(), |
69 |
|
]); |
70 |
|
} |
71 |
|
|
72 |
|
/** |
73 |
|
* @return array |
src/Form/Element/MultiSelectAjax.php 1 location
|
@@ 67-74 (lines=8) @@
|
64 |
|
* Getter of search url. |
65 |
|
* @return string |
66 |
|
*/ |
67 |
|
public function getSearchUrl() |
68 |
|
{ |
69 |
|
return $this->search_url ? $this->search_url : route('admin.form.element.'.static::$route, [ |
70 |
|
'adminModel' => \AdminSection::getModel($this->model)->getAlias(), |
71 |
|
'field' => $this->getFieldName(), |
72 |
|
'id' => $this->model->getKey(), |
73 |
|
]); |
74 |
|
} |
75 |
|
|
76 |
|
/** |
77 |
|
* @param Router $router |