Created
November 29, 2018 23:40
-
-
Save stillfinder/2fecc737fde24fb7e29fab9a2ecd831a to your computer and use it in GitHub Desktop.
SearchController.php
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 | |
namespace Drupal\custom_api\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
/** | |
* Class SearchController. | |
*/ | |
class SearchController extends ControllerBase { | |
/** | |
* Search. | |
* | |
* @return string | |
* Return Hello string. | |
*/ | |
public function search($search) { | |
return [ | |
'#type' => 'markup', | |
'#markup' => $this->t('Implement method: search with parameter(s): $search'), | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment