MVC and request handling · Question 2 of 12

What must the controller method be called that executes the action list in Extbase?

1 answer is correct. Easy

Show answer

Answer

  • B listAction()

Explanation

Extbase recognises actions by naming convention: a **public method with the suffix Action** is an action that can be enabled in a plugin or backend module. So the action name list in configurePlugin() calls the method listAction(). The controller itself lives in Classes/Controller/, extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController, and every action returns a ResponseInterface. A method list() without the suffix would just be a regular helper method that Extbase never calls as an action.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications