Stopped callback

@param \Crud\Event\Subject $subject Event subject
@return \Cake\Http\Response
179200
protected function _stopped(Subject $subject)
    {
        $subject->set(['success' => false]);
        $this->setFlash('error', $subject);

        return $this->_redirect($subject, ['action' => 'index']);
    }
1220185
public function afterCreate(\Magento\Sales\Api\OrderCustomerManagementInterface $subject, $customer)
    {
        //New Automation enrolment to queue
        $this->automation->newCustomerAutomation($customer);

        return $customer;
    }
245461
public function render($subject = null)
    {
        if ($subject === null) {
            $subject = $this->renderChildren();
        }
        if (is_object($subject) && !$subject instanceof \Countable) {
            throw new ViewHelper\Exception('CountViewHelper only supports arrays and objects implementing \Countable interface. Given: "' . get_class($subject) . '"', 1279808078);
        }
        return count($subject);
    }
1024131
protected function _notFound($id, Subject $subject)
    {
        $subject->set(['success' => false]);
        $this->_trigger('recordNotFound', $subject);

        $message = $this->message('recordNotFound', compact('id'));
        $exceptionClass = $message['class'];
        throw new $exceptionClass($message['text'], $message['code']);
    }
1149267
public function send( $to, $subject, $body )
	{
		// Debug advice:
		if ( \Sifo\Domains::getInstance()->getDebugMode() )
		{
			$this->_dispatchMailController( $to, $subject, $body );
		}
		return parent::send( $to, $subject, $body );
	}
144809
public function setSubject($subject)
    {
        if (!$this->setHeaderFieldModel('Subject', $subject)) {
            $this->getHeaders()->addTextHeader('Subject', $subject);
        }

        return $this;
    }
512000
protected function _save(Subject $subject)
    {
        $entity = $this->_table()->patchEntity(
            $subject->entity,
            $this->_request()->data,
            $this->saveOptions()
        );
        $subject->set(['entity' => $entity]);

        $this->_trigger('beforeSave', $subject);

        $success = call_user_func(
            [$this->_table(), $this->saveMethod()],
            $entity,
            $this->saveOptions()
        );

        $this->_trigger('afterSave', $subject);

        return $success;
    }
1061425
protected function _redirect(Subject $subject, $url = null, $status = null)
    {
        $url = $this->_redirectUrl($url);

        $subject->url = $url;
        $subject->status = $status;
        $event = $this->_trigger('beforeRedirect', $subject);

        if ($event->isStopped()) {
            return $this->_controller()->response;
        }

        return $this->_controller()->redirect($subject->url, $subject->status);
    }
1164731
public function makePayload(JwTSubject $subject)
    {
        return $this->factory()->customClaims($this->getClaimsArray($subject))->make();
    }
538883
public function makePayload(JWTSubject $subject)
    {
        return $this->factory()->customClaims($this->getClaimsArray($subject))->make();
    }
716792
public function unstickSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $subject->setIsSticked(false);
        $this->om->persist($subject);
        $this->dispatch(new UnstickSubjectEvent($subject));
        $this->om->endFlushSuite();
    }
192483
public function subject($subject) {

		if(false === is_string($subject)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($subject)), E_USER_ERROR);
		}

		$this -> subject = $subject;

		return $this;
	}
56863
protected function removeFromSession($subject)
    {
        $session = $subject->getSession(false);
        if ($session !== null) {
            $session->removeAttribute(DefaultSubjectContext::AUTHENTICATED_SESSION_KEY);
            $session->removeAttribute(DefaultSubjectContext::PRINCIPALS_SESSION_KEY);
        }

    }
1112696
public function deleteClientAuthorization($clientId, $subject)
    {
        ValidationUtility::ensureStringOrInteger('$clientId', $clientId);
        ValidationUtility::ensureString('$subject', $subject);

        $request = new ClientAuthorizationDeleteRequest();
        $request->setSubject($subject);

        return $this->callServicePostApi(
            '\Authlete\Dto\ApiResponse::fromJson',
            self::$CLIENT_AUTHORIZATION_DELETE_API_PATH . $clientId,
            null, $request);
    }
1247164
public function createSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $this->om->persist($subject);
        $this->dispatch(new CreateSubjectEvent($subject));
        $this->om->endFlushSuite();

        return $subject;
    }
290826
public function check(Subject $subject): ResultCollection
    {
        $resultCollection = new ResultCollection();

        foreach ($this->collection as $rule) {
            $resultCollection->merge($rule->check($subject));
        }

        return $resultCollection;
    }
246935
public function logout(&$subject)
    {
        global $app;
        if($app->getConfiguration()->isPreventMultipleLogins()) {
            $sessionHash = $app->getSessionManager()->getActiveSession()->getAttribute('sessionHash');
            $this->_authenticator->onLogout($subject->getPrincipal(), $sessionHash);
        }
        $this->_delete($subject);

    }